﻿using UnityEngine;
using UnityEngine.UI;

public class TestPanel : MonoBehaviour
{
    [SerializeField]
    [Autowrite]
    private Button testButton;
    [SerializeField]
    [Autowrite]
    private GameObject testObj;

    // Start is called before the first frame update
    void Start()
    {
        AutoInjectComponent.AutoInject(transform, this);
        testButton.onClick.AddListener(() =>
        {
            Debug.Log("Hello World");
        });
    }

}
